Yoast\WP\Lib\Migrations\Adapter D

Total Complexity 176
Dependencies 5
Dependents 5
Total lines 1,068
Lines of code 593
Logical lines of code 320
Comment lines 378
Methods 49
Properties 2

Methods 49

Method Rating Maintainability Complexity Lines of code
type_to_sql()
C
36 24 75
add_column_options()
B
40 21 55
add_index()
A
46 12 38
determine_query_type()
A
49 11 30
change_column()
S
55 7 18
has_index()
S
56 7 18
add_column()
S
56 7 17
query()
S
54 6 22
add_timestamps()
S
57 5 17
column_info()
S
58 5 15
remove_index()
S
59 5 13
remove_timestamps()
S
66 5 8
database_exists()
S
61 4 13
select_one()
S
61 4 12
native_database_types()
S
44 1 52
rename_column()
S
62 4 10
indexes()
S
58 3 15
rename_table()
S
67 3 7
get_index_name()
S
61 2 12
is_sql_method_call()
S
68 2 7
begin_transaction()
S
67 2 8
commit()
S
67 2 8
rollback()
S
67 2 8
rollback_transaction()
S
75 2 5
create_schema_version_table()
S
65 2 8
start_transaction()
S
74 2 5
commit_transaction()
S
75 2 5
drop_database()
S
66 2 8
create_database()
S
66 2 8
table_exists()
S
63 1 11
identifier()
S
80 1 3
has_table()
S
80 1 3
get_schema_version_table_name()
S
80 1 3
in_transaction()
S
82 1 3
__toString()
S
79 1 3
remove_version()
S
74 1 4
add_version()
S
74 1 4
quote_table()
S
80 1 3
get_migrated_versions()
S
74 1 4
supports_migrations()
S
82 1 3
column_definition()
S
74 1 4
execute()
S
80 1 3
select_all()
S
80 1 3
execute_ddl()
S
80 1 3
drop_table()
S
74 1 4
create_table()
S
79 1 3
remove_column()
S
74 1 4
quote_string()
S
76 1 4
get_database_name()
S
77 1 4